package com.thinkit.bigdata.web.service.bus;

import com.thinkit.bigdata.core.feature.orm.mybatis.Page;
import com.thinkit.bigdata.web.model.bus.BusModel;
import com.thinkit.bigdata.web.model.bus.BusModelExample;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by hccl on 2018/9/10.
 * modify by lichangyuan 2018年9月27日
 */
public interface BusModelService {

    BusModel selectByPrimaryKey(Long id);

    BusModel selectById(Long id);

    int insert(BusModel record);

    int insertSelective(BusModel record);

    int countByExample(BusModelExample example);

    List<BusModel> selectByExample(Page<BusModel> page, BusModelExample example);

    List<BusModel> selectByExample(BusModelExample example);

    int deleteByPrimaryKey(Long id);

    int deleteByExample(BusModelExample example, List<Long> modelIdlist);

    int updateByExampleSelective(BusModel record, BusModelExample example);

    int updateByPrimaryKey(BusModel record);

    int updateByPrimaryKeySelective(BusModel record);


    List<BusModel> selectByConditionAndPagenationAndMutilTable(HashMap<String, Object> params);

    List<BusModel> selectByConditionAndPagenationAndMutilTable(Page<BusModel> page, HashMap<String, Object> params);

    List<BusModel> selectByPrimaryKeyWithCopy( List list);

    int deleteByTypeId(Long typeId);

    List<BusModel> selectByPage(Page<BusModel> page, HashMap<String, Object> params);

    List<BusModel> select_model_all( HashMap<String, Object> params);

    List<BusModel> select_model_rule_all( HashMap<String, Object> params);

    HSSFWorkbook createExcel(HashMap<String, Object> params, String url) throws IOException;

    List<Map<String, Object>> query_modelTask_status( List<Long> ids);


    List<Object> query_model_status(List<Long> ruleIds);
}
